from api.ihrm_login_api import TestIhrmLogin


def get_header():
    json_data={"mobile":"13800000002","password":"123456"}
    resp=TestIhrmLogin.login_ok(json_data)
    token="Bearer "+resp.json().get('data')
    header={"Authorization":token}
    return header

